Move Project::replace and ::scan to Workspace

References #4589