Moved not_in query code into own methods for users index. Destroy-deplicate code now moved into one single method.
Merge pull request #123 from kaspernj/kj/codeclimate_optimizations

CodeClimate optimizations