How do I detach the minecart with the rusted lever in Jumbleneck Mine?

At the Jumbleneck Mine, next to the foreman's office, is a barrel of grease. Grab a bag of that and use that to oil the handle.