Fix error: Specification#config is deprecated. The config is accessible from the parameter passed to the hooks