remove code dup in getErraiAppProperties()

It's just another small refactoring, if you don't mind