Refactoring scroll-view-impl.cpp to reduce loc