Extract the deprecation message to avoid duplication
Remove duplication at the deprecated methods
Extract the wrapper options merge behavior to their own module

This make easier to share the same behavior between all the components
Move the context check down to the method