Reduce DRY. Move map of log info into $levels