Lawmakers are preparing legislation that would make Maryland the 11th state to prevent the sale of eggs from chickens who spend their days in so-called battery cages.