Consistency by design