Move occupancy controller logic to service