Add categories and tags to the replacement mechanism.