Extract `onCreateLink` option from `createLink`. #292.

Extract `onCreateLink` option from `createLink`. #292.