In those event of yours you are doing the same stuff so it is better to move it to separate function like
function functionName(pos, itemId)
local portal = Tile(pos):getItemById(itemId)
portal:remove(1)
end
and then
addEvent(functionName, execution_time, pos, itemId)
In general first...