Implement displayViewController(#name:) in the Preferences class.
Move more generic Swift functions to the GeneralSwiftHelpers.swift file.