Move Identity closure to separate factory

*   Move Identity Controller Plugin to factory
*   Move Identity View Helper to factory
remove unnecessary whitespace
add docblock and simplify logic
remove empty constructor
It was only calling the parent constructor
remove unnecessary whitespace
Merge pull request #4155 from maxnuf/feature/refactor-identity-helper

Move Identity closure to separate factory
Merge branch 'feature/4155' into develop

Close #4155