Clean up layer partials and view_objects a bit more.