extract entity define to seperate file