Extract ACE editor initialization into separate method