Make foundation core module to depend on model and api modules