An Emmerdale writer has been told by ITV he will no longer be working for the soap after he appeared in court after assaulting his girlfriend