removing a little code duplication in override decorator