split insertExtraAfter() among the base class and inheriting classes [#2146]