Extracted method to lower processMapping's complexity