A function can be installed programmatically in Common Lisp using symbol-function (instead of defun):
symbol-function
defun
* (setf (symbol-function \'factori