We already accept RowMapperFactory in StringBasedJdbcQuery that could serve as abstraction to not require BeanFactory. JdbcQueryLookupStrategy provides a RowMapperFactory implementation so that JdbcQueryLookupStrategy could serve as entry point for a RowMapperFactory implementation using BeanFactory. We can extend RowMapperFactory to resolve bean references and reduce so coupling in StringBasedJdbcQuery.