Factorize status flags