commit: factor status configuration is a helper function