Move action visibility calc function to nemo-action.c, where it belongs.