Refactoring: easybib_nginx variable logic in separate functions