Create QuestionSingleInput class and move all logic related to single input into this class from Question.