Split out lexicon services into separate JS file