Move code related to object candidates in new module.