SCDM-4: Add Port extractors for int and string

Refactor apply methods.