refactors eav models create table functionality