Move consts' names checking logic to ObjectSpace