Refactoring made for Filtered Vacancies controller
Some code moved to private methods