Hoist common flags into main