Add defonce again to prevent conflicts caused by
reloading
Remove assert that is not really having effect as
the context is set anyway
Remove superfluous keys in function definition