Refactors onScrollListener into seperate class to prevent duplication of methods.