Pull prepare_output_line into powercmd.cc and mark it static.
Remove unused function rposneg