New method to apply patches as decorators to existing functions