Moving layout to separate object.