Move parsing to the generic class so it can be reused