I have a program with several different forms, most of these forms have some repetition in them especially when it comes to form manipulation controls. How do I create a common class so I don't have the same code on each form, but am still able to manipulate individual forms. For instance the code below is a ToolStripMenuControl for making the form Always on top. I have this code repeated 4 times in other forms, but I cant seem to wrap my head around how to go about creating a shared control for this. What am I missing here?

```
    public bool onTop = false;
    public bool ToggleTop()
    {
        if (onTop)
        {
            onTop = false;
            this.TopMost = false;
            keepOnTopToolStripMenuItem.Checked = false;
            return onTop;
        }
        if (!onTop)
        {
            onTop = true;
            this.TopMost = true;
            keepOnTopToolStripMenuItem.Checked = true;
            return onTop;
        }
        else return onTop;
    }

    private void keepOnTopToolStripMenuItem_Click(object sender, EventArgs e)
    {
        ToggleTop();
    } 

```