These 2 lines are duplicated in several places. They should be extracted to a method in the base class