Restructure dic extension and add use_forms configuration option