Mastery is a transferable skill built from mental habits