Move inc/functions.php code to functions.php