extracted new method
Merge pull request #128 from Miliooo/patch-1

Created new method getQueryBuilderForAction from repeated code