Should that just be part of the parent class? Generating code in every subclass seems a bit silly.