Moved all metadata deployment functionality into new separate module