Normalize function declaration and export