refactoring: move logic (which conversion to make) to model from controller