Move server mmm logic to a service