Non-Lagrangian collective variable approach for optical solitons in fibres