DRY up layouts