Text this: Optimal control on hybrid ODE Systems with application to a tick disease model