Refactor mutate_content.dynamic.php