Pry::Editor, Pry::Command::Whereami: more refactorings