Remove depreciation warnings

but I still think that 'after' is a more readable choice than 'onAfterAction'