i3_last_focused_containers: minor cleanup and refactoring