Separate framework from cmd line UI code