I would consider moving this one into an `optimizer` subpackage.