Use staticmethod call to convert the function

Change-Id: Ib1e7631c908be8bdd876ae743673146069cb6bf2