Eliminate duplication with layouts