more DRY
breaking up big on_config_read function into smaller chunks
more readable array_strip_duplicates implementation