Cleanup: extract bindmount spec parsing

Docker-DCO-1.1-Signed-off-by: Brian Goff <cpuguy83@gmail.com> (github: cpuguy83)
Merge pull request #7446 from cpuguy83/cleanup_extract_bindmount_spec_parsing

Cleanup: extract bindmount spec parsing