I agree with Don. Either duplicating functions or passing an extra parameter of type such as
```fsharp
type Scope = | File | Project
```
Passing a getter function seems overkill.