Rename ScopeManager and create an interface