Use staticmethod as a decorater instead of a function.