Moved apiary output code into a method on the AppConfig class for easier re-use.