Remove TODOs.
Add copy_constant function.
Remove unnecessary register copy.