Refactors transient dependency implementation