Refactor \DoctrineModule\Form\Element\Proxy

No change in functionality whatsoever here.

I was reading through this code to solve a problem I was having and found the multiple indentation and embedded "if else"s were making it hard to follow.

If this is accepted then I'll happily do more of this, if not then no worries :smile: