API.Parts: Turn get_part into helper method in utils.