Support optional callback on repository create