Preserve methods property when decorating view functions.