This should be outside of the create action, and I think it might be clearer to do something like this:

```
include Swapfile::Helpers
```

Does that not work?