Refactor user answer helper