removed cyclic dependency from deployment modules and moved rule
creation from json to shared util