PLT-451 - Remove use of convention and security source

This PR removes use of convention and security source so that performance is improved.
Replaced with links so caching is applied correctly
Reformatted to match standards
Redundant code removed
Using return here has knocked out formatting of next three lines