Move beforePrefix and afterPrefix to Stereotype constructor