Yeah. I feel context plays an important role in this fight will power versus habits. I think the more you repeat your day, in the same environments, performing the same actions, interacting with the same people, the stronger habits become.
Habits feed on context.
(probably, in new environments, you stand a better change of creating new habits and abandoning old ones. Inmuch as the new environment induces a new mental context. Ultimately it all comes down to your mind).
Can compulsion result as a last stage of a behavior so frequently repeated that became an overwhelming habit?
Corolary: even if the motivational issues that get the person strated to repeat the behavior so often were delt with, it would not break the habit.
Motivational issues, like a closed loop between pain and a escapist pain delayer behaviour, may start the body into frequent and intense repetition. But once the process is learned by the body, motivation becomes irrelavent. The body went into automatic overdrive.