Separate CodeEditor into its own Role

Change-Id: Iaf9ccc2591bba9720da4fb0787da7b9bfed236c8