refactoring code to remove if else statements

This is the refactoring that we talked about the other day.
This comment belongs up in col_star, where we call `.getlist`.