Remove unneeded code for user layout template