Push unique_ptr ownership of ASTUnits further back into their factories.