I am currently working on a project where I have a BankAccount entity for some other entity.
Each bank account as a reference to a bank entity, an account number and opt
You could implement a Specification that uses Dependency Injection for the Repository. You lose a bit of cohesion, though.
More details can be found here.