Convert class to non static functions.