Macro/function extraction for kick