Makes map service check style compliant

The complexity of this method is high; it is 5 steps deep.