Unify the way to overwrite methods.