Refactoring of DBPedia related code in separate class