Migrating simple parse functions to methods in a class