Moving create term functionality into functions.php