refactor builder architecture in condition module.