[SkyDetector] do refoctoring of methods.