Remove the `smart_compilation` flag and update the semantics of the `clean` flag