[TASK] Moves function out from class ElementQueries to init script