Relocated the base console functionality into a separate package
Formatted code