Simplify code related to brightnessAnimation
Still m_brightnessAnimation initialization is lot of code duplication and need to fix that.