Migrated directives away from scroller service to helper functions.