Partially unify handling of immutable config and mutable state