Refactor reporter powerline code.