Refactored dropdown class hierarchy into base class and two child
classes.