Reduce code duplication
Reduce code duplication

dnmvisser/simplesamlphp,simplesamlphp/simplesamlphp,ghalse/simplesamlphp,ghalse/simplesamlphp,simplesamlphp/simplesamlphp,simplesamlphp/simplesamlphp,simplesamlphp/simplesamlphp,dnmvisser/simplesamlphp,dnmvisser/simplesamlphp,dnmvisser/simplesamlphp,ghalse/simplesamlphp,ghalse/simplesamlphp