Why you introduce static method? Why in this class? Can't you have just plain function which will query certain database/collection? The purpose of DBSDaemon is to fetch DBS datasets and store or query them in database. This action and behavior is independent from KWS itself. There is nothing wrong to have simple stand-alone function and re-use it in DBSDaemon and KWS instead of doing reverse.