Extract smooth changing speed function to SmoothChanger class