Requiring dependencies directly and eliminating factory method