Parts: Refactor build_part_properties.