DRYify layout