Refactor get_* commands; make filter work for both species and habitat.