Reloc fn getAvlOutCntx() from utils to view