These functions are identical to the ones in the other module.  You should define them in one place (probably the base class) and re-use them.