A common mechanism for ATP hydrolysis in ABC transporter and helicase superfamilies.