Automatically create the carrier for a function.