minor refactoring to layout generator
minor refactoring to layout generator

drhenner/backops-generators,brandonjmckay/nifty-generators,openeducation/nifty-generators,bjackson/nifty-generators,ryanb/nifty-generators