[HapProcessCeilometer] Clean up by removing duplicated code.