Any existing way to customize derived mode according to its base mode?