HomeIn-Portal Phabricator

Fixes INP-1414 - Remove "perm_prefix" processing code duplication in "perm" unit