Moving variables that are specific into a connection into a specific class