Clean up legacy smarty3