Use MethodDecorators to warn deprecated method