Refactor OnDateSelectedListener feature.