refactor taxonomy list code.