Allow to use extension with layout method.