GH80: Refactor profile forms view code

Reviewed and approved. Please, merge to master.