Extract line and activity HTML into methods