Removed code duplication in ResponseConverter.