Remove res and req from metadata functions in core apps (uses callbacks instead).