Rewrite some code to propagate Z button logic to subclasses.