Module refactoring and protocols

It really sounds like you want a behaviour, not a protocol.

Protocols are for calling the same function on different data types.

Behaviours are for a custom implementation of a function for each module. In essence a behaviour is a promise that your module implements a function of name X with arity Y. So that if I pass in
the module name to another module it can use

Kernel.apply(module, :optimal, [strategy])