refactor resultsetgetterfactory