I kind of started down the path of refactoring this whole module in https://github.com/candlepin/subscription-manager/commits/alikins/1044596_fix_release_list (HEAD of that broken atm), but backed up to just enough changes to fix the bug and add some tests.