Extract serviceMappingKeys to a method

Extract serviceMappingKeys to a method