Extract h.api.lib helpers