Extracts binary lookup into a separate class.