Extracted autosize functionality to View module.