Custom flash should be defined only for the class that defines it and it's subclasses.