i think this should move to a classmethod on `ApplicationBase`. should also update the other places where similar code is called to also call that method.