[refactor] implement helper function to only grab list names