Refactor `ls` stuff