Replace usage of deprecated variable with view block.