Improved code constant creation.