Refactor cask directory into variable.