Refactor Extensions module to namespace