Views extending and code rafractoring