remove unnecessary injection in spec