Change the byMethod and byContent mechanism to be more consistent with the rest of the API.