Removed dependency with config. The replacements hash is now directly passed