Split static refEntity_t from 2b615ff by function.