Refactor code for creating questions

* From two lines to one