[TASK] refactoring of extension's general utility