Get rid of ugly dependencies.

Move functionality belonging to CaptureFragment there, don't
clutter the MainActivity.