Allow staticmethod in non-decorator contexts.