Moving share sorting into a service.