Decorator factory for signature-preserving decorators.
