user demodulise for DRY and speed

also it is faster https://github.com/rails/rails/pull/14699