Extracting creation of dependency to setup method