Refactored operators.coffee, to break it into smaller components.