Remove unused scope declarations
Move scope declaration to scopes.ts