Removing explicit checking of object's private methods