How about a helper function to perform these operations? This is already duplicated for both base classes.