Please the structure recommended by the ruby style guide for the module:

```extend and include go first, constants are next, afterwards we have attribute macros, followed by other macros (if any), public class methods are next in line, followed by public instance methods, protected and private methods are grouped near the end```

Reference: https://github.com/bbatsov/ruby-style-guide