Dont refactor your code, just install this library :D
Transform your data easily
Autogenerate your form