refactor(layout): simplify layout directive