CDB-3061 creates functions in user model in the same way we create varnish invalidation function