clean deployment module a bit simplify imports
type policy.apply remove `apply`'s optionType, fixes duplicate definition error