migrate from hash to PORO classes