Take out some API defines