I'm wondering whether we should pass the type of the bean to be created here instead of the method. Doesn't make a big difference, maybe it'd make it easier to understand the purpose of it? I think I'll apply it as is, but we reconsider it later on.