Refactored parsing of body parts.