Move all named constants to cdef