Refactor layout files.