Refactoring select_dcase