Move the getParts() method to the parent class.